package com.train.member.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SmsRecordDTO {

    private Long id;

    private String mobile;

    private LocalDateTime now;

    private LocalDateTime before;

    private String smsCode;

    private String isUsed;

    private String businessType;

    private LocalDateTime useTime;

    private LocalDateTime sendTime;

    public SmsRecordDTO(String mobile, LocalDateTime now, LocalDateTime before) {
        this.mobile = mobile;
        this.now = now;
        this.before = before;
    }

    public SmsRecordDTO(String mobile, String smsCode, String isUsed, LocalDateTime useTime) {
        this.mobile = mobile;
        this.smsCode = smsCode;
        this.isUsed = isUsed;
        this.useTime = useTime;
    }
}
